From: Kosuke Mizubayashi Date: Thu, 31 Mar 2016 00:57:01 +0000 (+0900) Subject: Fix default values for targetlocation and configlog flags. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~9^2~9^2~4^2~1^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3dca0a71066f9422b28940be204f31dc47cdf676;p=gpsbabel.git Fix default values for targetlocation and configlog flags. The previous default value "" wereconsidered as TRUE in the IF condition, Those flags took effect even if users didn't specify it. There were no workarounds. Itprevented users to reach to the main procedure skytraq_read_tracks. Those should be NULL by default so that the IF condition should be FALSE if a user wouldn't specify it. --- diff --git a/skytraq.cc b/skytraq.cc index 3130bf244..914ecd27b 100644 --- a/skytraq.cc +++ b/skytraq.cc @@ -77,11 +77,11 @@ arglist_t skytraq_args[] = { }, { "targetlocation", &opt_set_location, "Set location finder target location as lat,lng", - "", ARGTYPE_STRING, "", "" + NULL, ARGTYPE_STRING, "", "" }, { "configlog", &opt_configure_logging, "Configure logging parameter as tmin:tmax:dmin:dmax", - "", ARGTYPE_STRING, "", "" + NULL, ARGTYPE_STRING, "", "" }, { "baud", &opt_dlbaud, "Baud rate used for download",